/*global cordova*/
module.exports = {
  platform: {
    WEIXIN: 1,
    QQ: 2,
    WEIBO: 3
  },
  openShare: function(arg, success, failure) {
    cordova.exec(success, failure, "UM", "openShare", [arg]);
  },
  auth: function(arg, success, failure) {
    cordova.exec(success, failure, "UM", "auth", [arg]);
  }
};